import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import MainPage from '@/components/MainPage'
import SearchPage from '@/components/SearchPage'
import NewsPage from '@/components/NewsPage'

Vue.use(Router)

let routes = [  
  {
    path:'/',
    name:"Index",
    component:Index
  },
  {
    path: '/main',
    name: 'MainPage',
    component: MainPage
  },
  {
    path: '/search',
    name: 'SearchPage',
    component: SearchPage
  },
  {
    path: '/new',
    name: 'NewsPage',
    component: NewsPage
  }
]

export default new Router({
  routes
})
